package cn.doitedu.tags_query.controller;


import cn.doitedu.tags_query.beans.UserTags;
import cn.doitedu.tags_query.service.UserTagService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TagsController {

    @Autowired
    UserTagService service;


    @RequestMapping("/tags/bygid/{gid}")
    public String getTagsByGid(@PathVariable  String gid){

        String tags = service.getTagsByGid(gid);

        return tags;
    }


    @RequestMapping("/tags/byid/{id}")
    public String getTagsById(@PathVariable  String id){

        String tags = service.getTagsById(id);


        return tags;
    }


}
